package com.service.impl;

import com.entity.SysVersionManage;
import com.repository.SysVersionRepository;
import com.service.FileOperationsService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author Yadasu
 * @date 2021/1/4 15:45
 */
public class FileOperationsServiceImpl implements FileOperationsService {

    @Autowired
    private SysVersionRepository sysVersionRepository;

    @Override
    public SysVersionManage getTheNewestVersionPackage() {
        List<SysVersionManage> versionIds = sysVersionRepository.findTheNewestVersionIds();
       SysVersionManage sysVersionManage=versionIds.get(0);
        return sysVersionManage;
    }
}
